<ui:composition
    xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	
	<h:form>
			
    <p:growl id="messages" autoUpdate="true"/>

    <p:panelMenu style="width:200px">
    
    	<c:forEach items="${configuration.menuItems}" var="item">
	            <c:choose>
	                <c:when test="${pageContext.request.servletPath == item.key}">
	                    <b>${item.value}</b>
	                </c:when>
	                <c:otherwise>
	                    <p:submenu label="${item.value}">
	                    	<p:menuitem value="${item.value}" url="${item.key}" icon="ui-icon-home" />
	                    </p:submenu>
	                    <p:menuitem value="Home" url="http://www.primefaces.org" icon="ui-icon-home" />
	                </c:otherwise>
	            </c:choose>
	    </c:forEach>
	    
    </p:panelMenu>

	</h:form>

</ui:composition>